//引入封装好的axios文件
import axios from '../../axios';

const logs = {
    //获取日志信息
    getLogs: function (params) {
        return axios({
            url: '/logs/getLogs',
            method: 'get',
            params,
        })
    },
    //上传日志信息
    addLogs: function (logs) {
        return axios({
            url: '/logs/addLogs',
            method: 'post',
            data: logs
        })
    },
    //删除日志
    delLogs: function (id) {
        return axios({
            url: '/logs/delLogs',
            method: 'post',
            data: {
                id
            }
        })
    },
}

//暴露出去
export default logs;